<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="<?php echo base_url('application/public/bootstrap-3.3.5/css/bootstrap.min.css');?>" rel="stylesheet">
	<link href="<?php echo base_url('application/public/css/register.css');?>" rel="stylesheet"/>
	<title>注册</title>
</head>

<body>
<br/><br/>
<form class="form-horizontal" action="<?php echo base_url('uc/upMyself');?>" method="post" ">
<div class="form-group">
	<label for="username" class="col-sm-2 control-label">姓名 :</label>
	<div class="col-sm-10">
		<input type="text" class="form-control" id="username" name="username" placeholder="Username"
		       value="<?php echo $username?$username:set_value('username');?>" disabled/>
		<br/><span id="username_err"><?php echo form_error('username');?></span>
	</div>
</div>

<div class="form-group">
	<label for="pwd" class="col-sm-2 control-label">原密码 :</label>
	<div class="col-sm-10">
		<input type="password" class="form-control" id="pwd" name="pwd" placeholder="Old Password"/>
		<br/><span id="pwd_err"><?php echo form_error('pwd');?><?php echo $failurePwd;?></span>
	</div>
</div>

<div class="form-group">
	<label for="pwd" class="col-sm-2 control-label">新密码 :</label>
	<div class="col-sm-10">
		<input type="password" class="form-control" id="pwd_confirm" name="pwd_confirm" placeholder="New Password"/>
		<br/><span id="pwd_err"><?php echo form_error('pwd_confirm');?></span>
	</div>
</div>

<div class="form-group">
	<label for="radio-group" class="col-sm-2 control-label">性别 :</label>
	<div id="radio-group" class="col-sm-10">
		<label class="radio-inline">
			<input type="radio" name="sex" id="inlineRadio1" value="男"
				<?php echo ($sex != '男')?'':'checked';?> disabled/> 男
		</label>
		<label class="radio-inline">
			<input type="radio" name="sex" id="inlineRadio2" value="女"
				<?php echo ($sex != '女')?'':'checked';?> disabled/> 女
		</label>
		<label class="radio-inline">
			<input type="radio" name="sex" id="inlineRadio3" value="XXY" disabled/> XXY
		</label>
		<br/><br/><span id="sex_err"><?php echo form_error('sex');?></span>
	</div>
</div>

<div class="form-group">
	<label class="col-sm-2 control-label">生日 :</label>
	<div id="" class="col-sm-10">
		<input placeholder="请输入日期" name="birthday" id="birthday" class="laydate-icon" value=" <?php echo $birthday;?>"/>
		<br/><br/><span id="birthday_err"><?php echo form_error('birthday');?></span>
	</div>
</div>

<div class="form-group">
	<label class="col-sm-2 control-label">角色 :</label>
	<div id="select-group" class="col-sm-12">
		<select name="authority" class="form-control" >
			<?php if($authority==1):?>
			<option value="0" >普通用户</option>
			<option value="1" selected>管理员</option>
			<?php else:?>
			<option value="0" >普通用户</option>
			<option value="0" >你想升级吗?</option>
			<?php endif;?>
		</select>
		<br/><span id="authority_err"><?php echo form_error('authority');?></span>
	</div>
</div>

<div class="form-group">
	<div class="col-sm-offset-2 col-sm-10">
		<button type="submit" class="btn btn-default">保存</button>
		<button type="reset" class="btn btn-default">重置</button>
	</div>
</div>
</form>

</body>
<script type="text/javascript" src="<?php echo base_url('application/public/laydate/laydate.js');?>"></script>
<script type="text/javascript" src="<?php echo base_url('application/public/bootstrap-3.3.5/js/jquery-2.1.4.min.js');?>"></script>
<script type="text/javascript" src="<?php echo base_url('application/public/bootstrap-3.3.5/js/bootstrap.min.js');?>"></script>

<script type="text/javascript">
	laydate({
		elem:'#birthday',
		format:'YYYY-MM-DD'
	});
</script>
</html>

